package com.it.salon.demo.marketing.activity.center.admin.listener;

import com.it.salon.demo.marketing.activity.center.admin.event.DemoEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value = Integer.MIN_VALUE)
public class SayHello4DemoEventListener implements ApplicationListener<DemoEvent> {

    @Override
    public void onApplicationEvent(DemoEvent demoEvent) {
        Object source = demoEvent.getSource();
        System.out.println(Thread.currentThread().getName());
        System.out.println("======================hello:" + source);
    }

}
